﻿var status = 0;
var zones = 0;
var selectedMap = -1;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (status >= 0 && mode == 0) {
		cm.dispose();
		return;
	}
	if (mode == 1)
		status++;
	else
		status--;
	if (status == 0) {
		cm.sendYesNo("你想要回去魔法#m101000000#了？？");
	} else if (status == 1) {
		cm.warp(101000000, 0);
		cm.dispose();
	}
}
